package com.webex.ta.hydra.gui.table.celleditor;

import com.webex.ta.hydra.core.Command;

import javax.swing.*;
import java.awt.*;

/**
 * Created by Cisco WebEx.
 * User: vegaz
 * Date: 2010-8-26
 * Time: 11:09:41
 */
public class HydraDefaultTableCellEditor extends DefaultCellEditor {
    public HydraDefaultTableCellEditor(final JTextField textField) {
        super(textField);
    }

    @Override
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
        Command cmd = (Command)value;
        return super.getTableCellEditorComponent(table, cmd.getParameter(column -2), isSelected, row, column);    //To change body of overridden methods use File | Settings | File Templates.
    }
}
